<html>
<head>
<title>模拟创建意见</title> 
{{>/WEB-INF/pages/common/meta_base.part.html}}
{{>/WEB-INF/pages/common/refs_base.part.html}}
	{{>/WEB-INF/pages/common/refs_modal.part.html}}
<!-- jquery -->
<!-- <link href="{{ctx}}/static/jquery-validation/1.11.0/validate.css" type="text/css" rel="stylesheet" />
<script src="{{ctx}}/static/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script	src="{{ctx}}/static/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
<script src="{{ctx}}/static/jquery-validation/1.11.0/messages_bs_zh.js"	type="text/javascript"></script>
<!-- Bootstrap -->
<!-- <link href="{{ctx}}/static/bootstrap/2.3.0/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="{{ctx}}/static/bsl/css/bsl.css" rel="stylesheet" type="text/css" />
<script src="{{ctx}}/static/bootstrap/2.3.0/js/bootstrap.min.js" type="text/javascript"></script> 
 -->
<link href="{{ctx}}/static/bootstrap-datetimepicker/datetimepicker.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="{{ctx}}/static/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#cmt_type").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate();
	});
</script>
</head>
<body>
	{{>/WEB-INF/pages/common/layout_header.part.html}}
	<div class="container">
		<!-- <ul class="breadcrumb">
		  <li><a href="{{ctx}}">首页</a> <span class="divider">/</span></li>
		  <li><a href="{{ctx}}/comment">应用意见</a> <span class="divider">/</span></li>
		  <li class="active">创建意见</li>
		</ul> -->
		<p class="tit1-st">
			<a href="{{ctx}}">首页 </a>&gt;<a href="{{ctx}}/system/cloud">云服务 </a>&gt;
			<a href="{{ctx}}/comment">应用意见</a>&gt;创建意见
			
		</p>
		<hr class="hr1">
		<div class="hr-10"></div>
		<div class="hr-10"></div>
		<div class="hr-10"></div>


		<form id="inputForm" action="{{ctx}}/comment/create" method="post" class="form-horizontal">
			<fieldset>
				<legend>
					<small>模拟创建意见</small>
				</legend>
				<div class="form-group myform-group">
					<label for="appName" class="control-label">选择应用:</label>
					<div class="controls">
						<span>{{app.app_name}}</span>
						<select name="appId" class="input-large">
							{{#apps}}
							<option value="{{id}}">
								{{app_name}}
							</option>
							{{/apps}}
						</select>
					</div>
				</div>
				
				<div class="form-group myform-group">
					<label for="checkin_title" class="control-label">选择用户:</label>
					<div class="controls">
						<select name="loginName" class="input-large">
							{{#users}}
							<option value="{{username}}">
								{{^name}}{{username}}{{/name}}
								{{#name}}{{name}}{{/name}}
							</option>
							{{/users}}
						</select>
					</div>
				</div>
				<div class="form-group myform-group">
					<label for="cmt_type" class="control-label">意见类别:</label>
					<div class="controls">
						<input type="text" id="cmt_type" name="type"
							class="input-large bordercircle4" value="{{comments.type}}" />
					</div>
				</div>
				<div class="form-group myform-group">
					<label for="cmt_content" class="control-label">意见内容:</label>
					<div class="controls">
						<textarea id="cmt_content" name="content" class="input-large required">{{comments.content}}</textarea>
					</div>
				</div>
				<hr>
				<div class="form-group myform-group">
					<label  class="control-label"></label>
					<button id="submit_btn" class="btn btn-primary" type="submit"
					 >提交</button>&nbsp; <button id="cancel_btn" class="btn btn-default"
						type="button" value="返回" onclick="history.back()">返回</button>
				</div>
			</fieldset>
		</form>
		<br>
		<br>
		<br>
		{{>/WEB-INF/pages/common/layout_footer.part.html}}
	</div>
	<div id="maskModal" class="modal hide fade" tabindex="-1" data-backdrop="false">
		<div class="modal-body">
			<div class="progress progress-striped active">
				<div class="bar" style="width: 100%;">
				</div>
			</div>
		</div>
	</div>
	<div id="infoModal" class="modal hide fade" tabindex="-1">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		</div>
		<div class="modal-body">
			<p></p>
		</div>
	</div>
</body>
</html>
